<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$userid         = get_loggedin_userid();
$interest_id    = get_input('interest_id');

$result = add_report($interest_id, $userid);

if($result)
    echo json_encode(export_result(200, $result));
else
    echo json_encode(export_result(400, $result));

?>
